import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        redirect: '/frame'
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/Login.vue')
    },
    {
        path: '/frame',
        name: 'frame',
        component: () => import('../views/Frame.vue')
    },
    {
        path: '/part',
        name: 'part',
        component: () => import('../views/Part.vue')
    },
    {
        path: '/preview',
        name: 'preview',
        component: () => import('../views/Preview.vue')
    },
    {
        path: '/user',
        name: 'user',
        component: () => import('../views/User.vue')
    },
    {
        path: '/chatBot',
        name: 'chatBot',
        component: () => import('../views/ChatBot.vue')
    },
    {
        path: '/shoppingcart',
        name: 'shoppingCart',
        component: () => import('../views/ShoppingCart.vue')
    },
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
  })
  
  export default router